package com.ecoolex.hotel.saas.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.hotel.saas.core.mapper.StoreAdMapper;
import com.ecoolex.hotel.saas.entity.StoreAd;
import com.ecoolex.hotel.saas.pojo.QueryStoreAdDTO;

public interface StoreAdDAO extends StoreAdMapper {
	
	long count(@Param("query") QueryStoreAdDTO query);

	List<StoreAd> query(@Param("query") QueryStoreAdDTO query, @Param("sortsOrder") String sortsOrder, @Param("page") Page page);

	List<StoreAd> queryEffective(@Param("storeId") Integer storeId, @Param("position") String position, @Param("positionValue") String[] positionValue, @Param("size") int size);
}